<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" class="csstransforms csstransforms3d csstransitions">
<head>
	<meta charset="utf-8" />
	<meta http-equiv="x-ua-compatible" content="ie=edge" />
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
	<meta name="author" content="chanlong" />
	<meta name="keywords" content="蜜娃娃, 早教, 缤够, 云服务" />
	<meta name="description" content="蜜娃娃云服务，专业提供早教领域，企业及机构，运营管理类，互联网产品" />
	<link rel="stylesheet" href="/miwawa/resources/lib/bootstrap/3.3.5/css/bootstrap.min.css" />
	<link rel="stylesheet" href="/miwawa/resources/fonts/font-awesome/4.5.0/css/font-awesome.css" />
	<link rel="stylesheet" href="/miwawa/resources/lib/miwawa/1.0.2/css/miwawa-app.css" />
</head>

<body>
	<div class="container-fluid article">
		<div class="row article-header">
			<div class="col-sm-12">
				<div class="header-pic">
					<img src="/miwawa/resources/photos/user/default.png" />
				</div>
				<div class="header-info">
					<span class="username" th:text="${data.article.teacherName}">赵冲</span>
				</div>
				<div class="header-time">
					<span>
						<i class="fa fa-clock-o"></i>
						<span th:text="${#dates.format(data.article.createTime,'yyyy-MM-dd HH:mm')}">2016-3-23 15:32</span>
					</span>
				</div>
			</div>
		</div>
		<div class="row article-title">
			<div class="col-sm-12">
				<div class="title-label" th:text="${data.article.title}">文章标题</div>
				<div class="title-count">
					<span class="hitCount">
						<i class="fa fa-eye"></i>
						<span th:text="${data.article.hitCount}">50</span>
					</span>
					<span class="commentCount">
						<i class="fa fa-commenting-o"></i>
						<span th:text="${data.article.commentCount}">22</span>
					</span>
				</div>
			</div>
		</div>
		<div class="row article-content">
			<div class="col-sm-12">
				<div class="content-body">
					<p th:text="${data.article.content}">
						文章内容
					</p>
				</div>
			</div>
		</div>
		<div class="row article-photos">
			<div class="col-sm-12">
				<div class="photos-body">
					<ul>
						<li>
							<p>
								<img th:src="${data.article.picture}" />
							</p>
						</li>
					</ul>
				</div>
			</div>
		</div>
		
		<div class="row article-comments">
			<div class="col-sm-12">
				<ul>
					<li class="comments-item" th:each="comment:${data.commentsList}">
						<div class="comment-header">
							<div class="commenter-info">
								<div class="commenter-icon">
									<span th:if="${comment.userIcon eq ''}">
										<img src="/miwawa/resources/photos/user/default.png" />
									</span>
									<span th:if="${not(comment.userIcon eq '')}">
										<img th:src="${comment.userIcon}" />
									</span>
								</div>
								<span class="commenter-name" th:if="${comment.userMobile eq ''}"     th:text="${#strings.substring(comment.teacherMobile,0,3) + '****' + #strings.substring(comment.teacherMobile,7,11) + ' ' + comment.teacherName}">赵冲</span>
								<span class="commenter-name" th:if="${comment.teacherMobile eq ''}"  th:text="${#strings.substring(comment.userMobile,0,3)    + '****' + #strings.substring(comment.userMobile,7,11)    + ' ' + comment.nickName}">赵冲</span>
							</div>
							<div class="comment-index">
								<span th:text="${commentStat.count+'楼'}">1楼</span>
							</div>
						</div>
						<div class="comment-body">
							<p th:text="${comment.commentContent}">
								这是我的评论内容，这是我的评论内容，
							</p>
						</div>
						<div class="comment-footer">
							<div class="comment-time">
								<span>
									<i class="fa fa-clock-o"></i>
									<span th:text="${#dates.format(comment.commentTime,'yyyy-MM-dd HH:mm')}">2016-3-23 15:32</span>
								</span>
							</div>
						</div>
					</li>
				</ul>
			</div>
		</div>
	</div>

<!-- Javascript =============================================== -->
	<script src="/miwawa/resources/lib/miwawa/1.0.2/js/jquery/jquery-1.11.3.min.js"></script>
	<script src="/miwawa/resources/lib/bootstrap/3.3.5/js/bootstrap.min.js"></script>
</body>
</html>
